package com.bootdo.enums;

public enum NotifyType {
    Other("0", "其他通知"),
    TingZhen("1", "停诊通知"),
    JiaoZhen("2", "就诊通知"),
    YyCancel("3", "预约取消通知"),
    ;
    private String sign;
    private String desc;

    NotifyType(String sign, String desc) {
        this.sign = sign;
        this.desc = desc;
    }

    public static NotifyType getEnum(String sign){
        for(NotifyType item : NotifyType.values()){
            if(item.getSign().equals(sign)){
                return item;
            }
        }
        return null;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
